# 基础题：
# Base64是一种常见的编码方式
# 下面的字符串是一段Base64编码的预言，请尝试解开它。
#
# "5LuK5aSp5piv5omT5Y2h55qE56ysMzflpKnvvIzliqrlipvvvIznm7jkv6HniZvlubTkvJrmmrTlr4zvvIE="
#
# 挑战题：
# 请尝试对上述字符串进行md5加密


import base64
url="5LuK5aSp5piv5omT5Y2h55qE56ysMzflpKnvvIzliqrlipvvvIznm7jkv6HniZvlubTkvJrmmrTlr4zvvIE="
str_url = base64.b64decode(url).decode("utf-8")
print(str_url)

import hashlib

str_md5=hashlib.md5(url.encode(encoding='UTF-8')).hexdigest()
print(str_md5)